package com.hejia.alauda.exception;

/**
 * 
 * 业务异常类
 *
 *
 * Created by showone on 2015 下午4:57:42.
 *
 * @Copyright: 2015 www.hejiajinrong.com All rights reserved.
 */
public class BusinessException extends Exception {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int code;

	public BusinessException(String message) {
		super(message);
	}

	public BusinessException(BusinessExceptionCode beCode) {
		super(beCode.getDescription());
		code = beCode.getCode();
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}
}
